From: Keir Fraser Date: Tue, 2 Oct 2007 08:35:37 +0000 (+0100) Subject: hvm: Fix HVMOP_flush_tlbs to flush paging-mode state. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14929^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=a7d88e65676dc29ac7aac07b7dd8bb77e556a4be;p=xen.git hvm: Fix HVMOP_flush_tlbs to flush paging-mode state. From: Peter Johnston Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arch/x86/hvm/hvm.c index 3834a86028..9b45e5195c 100644 --- a/xen/arch/x86/hvm/hvm.c +++ b/xen/arch/x86/hvm/hvm.c @@ -1657,7 +1657,15 @@ static int hvmop_set_pci_link_route( static int hvmop_flush_tlb_all(void) { + struct vcpu *v; + + /* Flush paging-mode soft state (e.g., va->gfn cache; PAE PDPE cache). */ + for_each_vcpu ( current->domain, v ) + paging_update_cr3(v); + + /* Flush all dirty TLBs. */ flush_tlb_mask(current->domain->domain_dirty_cpumask); + return 0; }